package com.ruoyi.source.api.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;

import java.io.Serializable;
import java.util.List;

/**
 * 地区对象 src_city
 * 
 * @author ruoyi
 * @date 2024-07-23
 */
@TableName("src_city")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SrcCity implements Serializable {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long cityId;

    /** 父id */
    @Excel(name = "父id")
    private Long parentId;

    /** 名称 */
    @Excel(name = "名称")
    private String cityName;

    /** 类型 */
    @Excel(name = "类型")
    private Long cityType;


    @TableField(exist = false)
    private List<SrcCity> children;

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Long getCityType() {
        return cityType;
    }

    public void setCityType(Long cityType) {
        this.cityType = cityType;
    }

    public List<SrcCity> getChildren() {
        return children;
    }

    public void setChildren(List<SrcCity> children) {
        this.children = children;
    }
}
